package com.lagou.assignment.service;

import com.lagou.assignment.dao.AdminDao;
import com.lagou.assignment.factory.AdminDaoFactory;
import com.lagou.assignment.model.Admin;

import java.sql.SQLException;

public class AdminService {
    private AdminDao adminDao;

    public AdminService() {
        this.adminDao = AdminDaoFactory.getAdminDao();
    }

    public Admin adminLoginService(Admin admin) throws SQLException {
        return adminDao.adminLogin(admin);
    }
}
